package org.xiaoyu.rpc.common.annotations;

import java.lang.annotation.*;

/**
 * 用于服务端，表示这个服务需要被注册
 * Created By Have
 * 2021/7/11 14:57
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
@Inherited
public @interface RpcService {
    Class<?> interfaceClass() default void.class;

    String serviceName() default "";

    String version() default "1.0";

    String group() default "public";

    String path() default "";

    float weight() default 1.0f;
}
